import {createApp} from "vue";
import App from "./App.vue";
import router from "./router/router.js";

//设置标题
router.beforeEach((to,from,next) => {
    if(to && to.meta && to.meta.title){
        document.title = to.meta.title;
    }
    next();
});

const app = createApp(App);
app.use(router).mount("#app");

